const state = () => ({
    username: ''
})
const mutations = {
    setUsername(state, username) {
        state.username = username
    }
}
const actions = {
    setUsername({ commit }, username) {
        commit('setUsername', username)
    }
}
module.exports = {
    state,
    mutations,
    actions
}